﻿
namespace Lbb.Data
{
    /// <summary>
    /// 排序接口.
    /// </summary>
    /// Author      Chiron
    /// Created     2011-5-28
    /// LastUpdated 2011-5-28
    public interface IOrdering
    {
        /// <summary>
        /// 移动记录.
        /// </summary>
        /// <param name="id">记录标识</param>
        /// <param name="isUp">是否为向上移</param>
        void Move(object id, bool isUp);
        /// <summary>
        /// 取得下一个排序序号.
        /// </summary>
        /// <param name="paramx">条件</param>
        /// <returns></returns>
        /// <example>
        /// GetNextOrdering(new{ParentID=null})
        /// </example>
        int GetNextOrdering(object paramx);
    }
}